{% extends 'business/devices_list.html' %}

{% block device_title %}{{ which }}列表{% endblock %}

{% block device_1 %}{{ which }}管理{% endblock %}

{% block device_2 %}{{ which }}管理{% endblock %}

{% block list %}
    <table id="memberTable" class="table table-bordered table-hover nowrap">
        <thead>
        <tr>
            <th>id</th>
            <th>型号名称</th>
            <th>制冷量(kW)</th>
            <th>制冷效率</th>
            <th>输入功率</th>
            <th>是否默认</th>
            <td><label>
                <input type="checkbox" id="select_all">
            </label></td>
        </tr>
        </thead>
        <tbody>
        {% for i in devices %}
            <tr>
                <td>{{ i.id }}</td>
                <td target="model_name">{{ i.model_name }}</td>
                <td target="cool_cap">{{ i.cool_cap }}</td>
                <td target="effect">{{ i.effect }}</td>
                <td target="input_power">{{ i.input_power }}</td>
                <td>{% if i.is_default %}
                    <i class="fa fa-check-circle"></i>
                {% else %}

                {% endif %}</td>
                <td><label>
                    <input id="cb{{ i.id }}" type="checkbox" class="cb">
                </label></td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
{% endblock %}

{% block add_title %}新增{{ which }}{% endblock %}